package org.itboys.mobile.dto.member;

import org.itboys.coo.dto.comment.MdlCommentDto;
import org.itboys.mobile.dto.common.MobileBaseDto;

import java.math.BigDecimal;
import java.util.List;

/**
 * 作者：jiangxiong
 * 日期：2017年5月8日
 * 联系方式 ：empty90911@126.com
 * 描述：圣代_用户_DTO
 */
public class SundayMemberDto extends MobileBaseDto{
    private String userName;//登陆账号。随机生成
    private String nickName;//昵称
    private String mobile;//手机号。用户注册标识
    private String mobileName;//联系电话
    private String address;//地址
    private String email;//电子邮箱
    private Integer userType;//用户类型。根据项目逻辑自行定义。1代理商，2销售员，3维修工，4普通用户
    private String image;//头像
    private String idCard;//身份证号
    private String desc;//个人简介
    private List<MdlCommentDto> comments;//评论。

    //用户状态
    private int status;//0正常，1冻结
    //用户折扣
    private BigDecimal discount;//大客户折扣
    private Integer salesManStatus;//销售员状态

    public SundayMemberDto() {
    }

    public SundayMemberDto(
            long id, String createTime, String createDate,
            String userName, String nickName, String mobile, String mobileName,
            String address, String email, Integer userType, String image, String idCard, String desc,
            int status) {
        super(id, createTime, createDate);
        this.userName = userName;
        this.nickName = nickName;
        this.mobile = mobile;
        this.mobileName = mobileName;
        this.address = address;
        this.email = email;
        this.userType = userType;
        this.image = image;
        this.idCard = idCard;
        this.desc = desc;
        this.status = status;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getMobileName() {
        return mobileName;
    }

    public void setMobileName(String mobileName) {
        this.mobileName = mobileName;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Integer getUserType() {
        return userType;
    }

    public void setUserType(Integer userType) {
        this.userType = userType;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }


    public BigDecimal getDiscount() {
        return discount;
    }

    public void setDiscount(BigDecimal discount) {
        this.discount = discount;
    }

    public List<MdlCommentDto> getComments() {return comments;}

    public void setComments(List<MdlCommentDto> comments) {this.comments = comments;}

    public Integer getSalesManStatus() {
        return salesManStatus;
    }

    public void setSalesManStatus(Integer salesManStatus) {
        this.salesManStatus = salesManStatus;
    }

    public String  getSalesManStatusStr(){
        String statusStr= "";
        if(salesManStatus==null)return statusStr;

        switch (salesManStatus) {
            case 1:
                statusStr="待审核";
                break;
            case 0:
                statusStr="已审核";
                break;
            case 2:
                statusStr="已驳回";
                break;
            default:
                break;
        }
        return statusStr;
    }

    public String  getUserTypeStr(){
        String userTypeStr= "";
        if(userType==null)return userTypeStr;

        switch (userType) {
            case 1:
                userTypeStr="代理商";
                break;
            case 2:
                userTypeStr="销售员";
                break;
            case 3:
                userTypeStr="维修工";
                break;
            case 4:
                userTypeStr="普通用户";
                break;
            default:
                break;
        }
        return userTypeStr;
    }
}
